<!DOCTYPE html>
<html lang="ch">
<link rel="stylesheet"
      href="{{url_for('.static', filename='index.css')}}">
{% if title %}
<title>{{title}} - 留言板</title>
{% else %}
<title>留言板</title>
{% endif %}
<script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
<script src={{url_for(".static", filename="ckeditor/ckeditor.js")}}></script>
<script src={{url_for(".static", filename="ckeditor/adapters/jquery.js")}}></script>


<head>
    <meta charset="UTF-8">
    {% block head %}
    <p id=top_info>留言板({{ver}})</p>
    <br/>
    {% endblock %}
</head>
<body>
    {% block body %}
    {% endblock %}

<div id="pg">
    {% if page > 1 %}
    <a href={{url_for("index", page=page - 1)}}>上一页</a>
    {% endif %}
    {% for p in pages_to_jump(page_sum, page) %}
    {% if p == page %}
    <strong>{{p}}</strong>
    {% else %}
    <a href={{url_for("index", page=p)}}>{{p}}</a>
    {% endif %}
    {% endfor%}
    {% if page < page_sum %}
    <a href={{url_for("index", page=page + 1)}}>下一页</a>
    {% endif %}
    {% if page != page_sum %}
    <a href={{url_for("index", page=page_sum )}}>最后一页</a>
    {% endif %}
</div>
</body>
</html>